package dimensional.traveler.server.persistence.mock;

import java.util.Map;
import java.util.TreeMap;

import dimensional.traveler.server.model.User;
import dimensional.traveler.server.persistence.UserRepository;

public class MockUserRepository implements UserRepository{

		Map<String, User> users = new TreeMap<>();
		
		public MockUserRepository() {
			users.put("asd", new User("asd", ""));
		}
		
		@Override
		public void addUser(User user){
			users.put(user.getUserName(), user);
		}
		
		@Override
		public User getUserByUserName(String userName){
			return users.get(userName);
		}
}
